#!/bin/bash

erl -make

xterm -bg black -fg green -e /usr/bin/erl -pa ebin/ -setcookie apa -db backend dict -sname node -s node start &


xterm -bg black -fg green -e /usr/bin/erl -pa ebin/ -setcookie apa -db backend dict -sname node1 -s node start_join node@$(hostname) &
xterm -bg black -fg green -e /usr/bin/erl -pa ebin/ -setcookie apa -db backend dict -sname node2 -s node start_join node@$(hostname) &
xterm -bg black -fg green -e /usr/bin/erl -pa ebin/ -setcookie apa -db backend dict -sname node3 -s node start_join node@$(hostname) &
